HTTP Streams interest Class
Methods
post
(
Void
-
$_REQUEST
Used by HTTP clients to create a new interest in the system.
Parameters:
-
$_REQUEST
Array-
[title]
String optionalRequired. The title of the interest.
-
[publisherId=Users::communityId()]
String optionalOptional. Defaults to the current community's id.
-
[subscribe]
String optionalOptional. Defauls to false. Whether to subscribe rather than just join the interest stream.
-
Returns:
Void:
Events
Streams/interest/delete
After
Occurs when the logged-in user has successfully removed an interest via HTTP
Event Payload:
-
publisherId
StringThe publisher of the interest stream
-
title
StringThe title of the interest
-
user
Users_UserThe logged-in user
-
stream
Streams_StreamThe interest stream
-
myInterests
Streams_StreamThe user's "Streams/user/interests" stream
Streams/interest/post
After
Occurs when the logged-in user has successfully added an interest via HTTP
Event Payload:
-
publisherId
StringThe publisher of the interest stream
-
title
StringThe title of the interest
-
subscribe
BooleanWhether the user subscribed to the interest stream
-
user
Users_UserThe logged-in user
-
stream
Streams_StreamThe interest stream
-
myInterests
Streams_StreamThe user's "Streams/user/interests" stream